package org.wcms.surrounded.web;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.wcms.surrounded.web.data.BadRequestData;
import org.wcms.surrounded.web.data.ResponseData;

public class BadRequestAjaxHandler implements AjaxHandler {

    @Override
    public ResponseData handle(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.setStatus(400);
        return new BadRequestData();
    }

}
